<template>
  <div>
    <van-tabbar
      v-model="$parent.active"
      active-color="#ee0a24"
      inactive-color="#000"
      class="bottomNav"
    >
      <van-tabbar-item icon="wap-home-o" replace to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" replace to="/detCal">分类</van-tabbar-item>
      <van-tabbar-item
        icon="shopping-cart-o"
        :badge="$store.getters.getShopCarNum"
        replace
        to="/shoppingCar"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item icon="user-o" replace to="/myHome">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.bottomNav {
  position: fixed;
  bottom: -3px;
}
</style>
